#include <stdlib.h>
#include <iostream>
#define ALTLRU_HITINFO
#include "AltLRU.hpp"

using namespace std;

int main() {
	AltLRU<int> lru(10000);

	for(int i=0; i<15000; i++) {
		lru.set("testset", i, i, 1);
	}

	for(int i=0; i<100000; i++) {
		auto v = lru.get("testset", rand()%15000);
	}

	cout << "stat_cache_hits "<< lru.stat_cache_hits << endl;
	cout << "stat_cache_miss "<< lru.stat_cache_miss << endl;
	cout << "stat_cache_get "<< lru.stat_cache_get << endl;
	cout << "stat_cache_set "<< lru.stat_cache_set << endl;
	cout << "stat_cache_out "<< lru.stat_cache_out << endl;

	return 0;
}
